package com.cardone.platform.authority.dao;

import java.util.List;
import java.util.Map;

import com.cardone.common.dto.PaginationDto;
import com.cardone.platform.authority.dto.PermissionDto;
import com.cardone.persistent.support.SimpleDao;

/**
 * 许可
 *
 * @author yaohaitao
 * 
 */
public interface PermissionDao extends SimpleDao<PermissionDto> {
		/**
		 * sql标识
		 * 
		 * @author yaohaitao
		 * 
		 */
		public enum SqlIds {
        /**
	     * 插入
	     */
		@Deprecated
		insertByCode,
		
  /**
   * 插入
   */
		insertByNotExistsCode,
	
		/**
	     * 删除
	     */
		@Deprecated
		deleteByIds,
	
		/**
	     * 更新
	     */
		@Deprecated
		updateByCode,
	
		/**
	     * 读取
	     */
		@Deprecated
		readByCode,
	
		/**
	     * 读取
	     */
		@Deprecated
		readByLikeCode,
	
		/**
	     * 查询
	     */
		@Deprecated
		findById,
	
		/**
	     * 查询
	     */
		@Deprecated
		findByCode,
	
		/**
	     * 查询
	     */
		@Deprecated
		find,
	
		/**
	     * 查询
	     */
		@Deprecated
		findByLikeCode;

		/**
		 * 根目录
		 */
		private static final String ROOT = "/platform/authority/permission/";

		/**
		 * 标识
		 */
		private final String id;

		/**
		 * sql标识
		 */
		private SqlIds() {
			this.id = SqlIds.ROOT + this.name();
		}

		/**
		 * 获取
		 * 
		 * @return sql标识
		 */
		public String id() {
			return this.id;
		}
	}
}